package cn.ayun.controller;

import cn.ayun.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class EmployeeController {
    @Autowired
    private EmployeeService employeeService;

    @RequestMapping("/test")
    public String test(@RequestParam(value = "id",defaultValue = "1") Integer id) {
        System.out.println(employeeService.getEmployeeById(id));

        return "success";
    }
}
